package com.ziyun.erp.modules.goodsCraftPrice.dao;

import com.ziyun.erp.modules.goods.entity.GoodsTemplateEntity;
import com.ziyun.erp.modules.goodsCraftPrice.entity.GoodsCraftPriceEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * 工艺价格表
 * 
 * @author zh
 * @email 296588519@qq.com
 * @date 2018-09-10 10:43:12
 */
public interface GoodsCraftPriceDao extends BaseMapper<GoodsCraftPriceEntity> {

    List<Map<String,Object>> selectGoodsCraftList(Long sellerId);

    List<GoodsCraftPriceEntity> selectGoodsCraftPrice(Long sellerId);

    List<GoodsCraftPriceEntity> selectGoodsCraftOptionPriceList(Map<String, Object> parasMap);

    void deleteByAttributeId(Map<String, Object> parasMap);

    List<Map<String,Object>> selectQuoteGoodsCraftList(Map<String, Object> parasMap);

    List<GoodsCraftPriceEntity> selectQuoteGoodsCraftPrice(Map<String, Object> parasMap);

    List<GoodsCraftPriceEntity> selectQuoteGoodsCraftOptionPriceList(Map<String, Object> parasMap);

    void deleteQuoteByAttributeId(Map<String, Object> parasMap);

    List<GoodsCraftPriceEntity> selectGoodsCraftTemplateOptionPriceList(Map<String, Object> queryParam);

    List<GoodsTemplateEntity> selectGoodsTemplateList(Long sellerId);

    List<Map<String,Object>> selectGoodsCraftOrPriceList(Map<String, Object> params);

    List<GoodsCraftPriceEntity> selectGoodsCraftPriceByParams(Map<String, Object> params);

    int selectCountByMap(Map<String, Object> queryMap);
}
